<template>
<div>
红苹果{{a}}
<button @click="getPath"></button>  
</div> 
 
</template>
<script>
export default{
data(){
    return{
        a:"123"
    }
},
methods:{
    getPath(){
        console.log(this.$router)
        
    }
}
}
</script>

